home *** CD-ROM | disk | FTP | other *** search
Makefile | 1993-07-11 | 2.6 KB | 88 lines | [TEXT/MPS ] |
- #———————————————————————————————————————————————————————————————————————————
- #
- # Makefile for Nifty C Libraries
- #
- # Copyright (c) 1993 Anthony C. Ard.
- #
- # This program is free software; you can redistribute it and/or
- # modifiy it under the terms of the GNU General Public License
- # as published by the Free Software Foundation; either version 2
- # of the License, or (at your option) any later version.
- #
- # This program is distributed in the hope that it will be useful,
- # but WITHOUT ANY WARRANTY; without even the implied warranty of
- # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- # GNU General Public License for more details.
- #
- # You should have received a copy of the GNU General Public License
- # along with this program; if not, write to the Free Software
- # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
- #
- #———————————————————————————————————————————————————————————————————————————
-
- libdir = {CLibraries}
- includedir = {CIncludes}
-
- SymOptions = #-sym on
- AOptions = -case obj {SymOptions}
- ANSIC = -r -d __STDC__
- COptions = -mc68020 -opt full {ANSIC} {SymOptions}
- LibOptions = {SymOptions}
-
- Headers = alloca.h stat.h dirent.h getopt.h varargs.h toolserver.h ∂
- String-extras.h StdLib-extras.h sys_types.h
-
- Objects = alloca.a.o dirent.c.o stat.c.o uc-random.c.o getopt.c.o ∂
- bsd-strings.c.o gcvt.c.o dup2.c.o strcase.c.o isatty.c.o ∂
- strdup.c.o toolserver.c.o
-
- LibObjs = "{CLibraries}"Math.o ∂
- "{CLibraries}"CSaneLib.o ∂
- "{CLibraries}"Complex.o ∂
- "{CLibraries}"StdCLib.o ∂
- "{Libraries}"Stubs.o ∂
- "{Libraries}"ToolLibs.o ∂
- "{Libraries}"Runtime.o ∂
- "{Libraries}"Interface.o
-
- #———————————————————————————————————————————————————————————————————————————
- # Main build rules
- #———————————————————————————————————————————————————————————————————————————
-
- all ƒ cextras.o
-
- cextras.o ƒ {Objects}
- Lib -o {Targ} -sn Main=cextras {LibOptions} {Objects}
-
- alloca.a.o ƒƒ Makefile
- bsd-strings.c.o ƒƒ Makefile
- dirent.c.o ƒƒ dirent.h Makefile
- dup2.c.o ƒƒ Makefile
- gcvt.c.o ƒƒ Makefile
- getopt.c.o ƒƒ getopt.c getopt.h Makefile
- C getopt.c -o {Targ} {COptions} -d STDC_HEADERS
- isatty.c.o ƒƒ Makefile
- stat.c.o ƒƒ stat.h Makefile
- strcase.c.o ƒƒ Makefile
- strdup.c.o ƒƒ Makefile
- toolserver.c.o ƒƒ Makefile
- uc-random.c.o ƒƒ Makefile
-
- #———————————————————————————————————————————————————————————————————————————
- # Other build rules
- #———————————————————————————————————————————————————————————————————————————
-
- install ƒ all
- Set Exit 0
- # install libraries
- Move -y cextras.o "{libdir}"
- # install header files
- Duplicate -y {Headers} "{includedir}"
- Set Exit 1
-
- clean ƒ
- Set Exit 0
- Delete ≈.o
- Delete ≈.SYM
- Set Exit 1
-